# -*- coding:utf-8 -*-
"""
Created on 31.01.2010

@author: r4smus
"""

students = ['hans', 'fritz', 'ludwig', 'christian', 'denise']
print "students: " +str(students)

newStud = raw_input("Which student you want to add to the list? ")
students.append(newStud)
print "students: " +str(students)

while True:
    index = raw_input("Please insert a number between 0 and " +str(len(students)-1) +": "  )
    index = int(index)
    if index < 0 or index > len(students)-1:
        print "wrong number, try it again"
    else:
        break
print "student number " +str(index + 1) +": " +students[index]

students.insert(0, "john")
students.insert(0, "mary")

print "students: " +str(students)


